
import math

def log(func):
    def wrapper(*args):
        print("call %s()" % func.__name__)
        print("args is : %s " % args)
        return func(*args)
    return wrapper

@log
def isPrime(nums):
    result = {}
    if len(nums) == 0:
        print("list是空")
    else:
        for i in range(0,len(nums)):
            result[nums[i]] = True
            if nums[i] <= 1:
                result[nums[i]] = False
            else:
                for j in range(2,int(math.sqrt(nums[i]))+1):
                    if nums[i] % j == 0:
                        result[nums[i]] = False
    print(result)

isPrime(list(range(11)))



